package com.shawbs.vueblog;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/redis")
@RestController
public class Test {

    public static void main(String[] args) {

        String str = "http://asxsx.com/common/downloadFile/19002859463436580.jpg";
        System.out.println(str);
        str = str.replaceAll("http\\S+\\/\\/[^\\/]*/","");
        System.out.println(str);


    }
}
